package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @param
 * @return
 */
public interface UserMapper {
    /*参数是map集合时*/
    User login(Map map);
/*返回值时map集合时*/
    Map findUserNameAndPasswordById(Integer id);
/*根据多个表参数查询获取多个结果*/
    List<Map> findMapByMap(Map parameterMap);
    User findByNameAndPassword(@Param("username") Object username,@Param("password") Object password);

    List<User> findByIds(List<Integer> idList);
}
